<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title></title>
    <script language="javascript" type="text/javascript" src="JObj.js"></script>
</head>
<body>
<div id="a" style="background-color:#666;width:200px;height:200px;position:absolute;top:100px;left:100px;">
    <div id="b" style="background-color:#ccc;">bbb</div>You can drag me!
</div>

<script>
    JObj.use('JDrag');
    var a = document.getElementById('a');
    var b = JObj.$('b');
    JObj.UI.JDrag.setDrag(a,a);
</script>
</body>
</html>